﻿<%@ Page Language="c#" CodeBehind="sellmanclient.aspx.cs" AutoEventWireup="false" Inherits="UDS.SubModule.CM.Stat.SellManClientPage" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
<head>
  <title>sellmanclient</title>
  <uds:Style runat="server" Href="~/css/BasicLayout.css" />
</head>
<body ms_positioning="GridLayout">
  <form id="sellmanclient" method="post" runat="server">
    <table id="Table1" style="z-index: 101; left: 8px; position: absolute; top: 8px" cellspacing="1" cellpadding="1" width="100%" border="1">
      <tr>
        <td><asp:Literal ID="ltl_begintime" runat="server" /> <asp:Literal ID="ltl_endtime" runat="server" /> <asp:Literal ID="ltl_clientno" runat="server" /> <asp:Literal ID="ltl_contactno" runat="server" /></td>
      </tr>
      <tr>
        <td>
          <asp:DataGrid ID="dgrd_sellmanclient" runat="server" Width="100%" AutoGenerateColumns="False" AllowPaging="True">
            <Columns>
              <asp:BoundColumn DataField="ID" SortExpression="ID" HeaderText="编号" />
              <asp:TemplateColumn SortExpression="NAME" HeaderText="客户名称">
                <ItemTemplate>
                  <asp:HyperLink runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.Name") %>' NavigateUrl='<%# "Client.aspx?ClientID="+DataBinder.Eval(Container,"DataItem.ID")%>' Target="_blank" />
                </ItemTemplate>
              </asp:TemplateColumn>
              <asp:BoundColumn DataField="ContactTimes" SortExpression="ContactTimes" HeaderText="接触次数" />
              <asp:TemplateColumn HeaderText="成交预估">
                <ItemTemplate>
                  <asp:HyperLink runat="server" Text='<%# DataBinder.Eval(Container, "DataItem.BargainPrognosis") %>' NavigateUrl='<%# "ClientContact.aspx?ClientID="+DataBinder.Eval(Container,"DataItem.ID")%>' Target="_blank" />
                </ItemTemplate>
              </asp:TemplateColumn>
              <asp:BoundColumn DataField="UpdateTime" SortExpression="UpdateTime" HeaderText="更新时间" />
              <asp:TemplateColumn HeaderText="接触状态">
                <ItemTemplate>
                  <asp:HyperLink runat="server" Text='<%# GetCurStatus(DataBinder.Eval(Container,"DataItem.Curstatus").ToString()) %>' NavigateUrl='<%# "ClientContact.aspx?ClientID="+DataBinder.Eval(Container,"DataItem.ID")%>' />
                </ItemTemplate>
              </asp:TemplateColumn>
              <asp:TemplateColumn HeaderText="添加人">
                <ItemTemplate>
                  <asp:Label runat="server" Text='<%# GetAddMan(((DataRowView)Container.DataItem).Row.GetChildRows("ClientAddMan_Staff")) %>' />
                </ItemTemplate>
              </asp:TemplateColumn>
            </Columns>
            <PagerStyle NextPageText="上一页" HorizontalAlign="Right" Mode="NumericPages" />
          </asp:DataGrid>
        </td>
      </tr>
    </table>
  </form>
</body>
</html>
